package cn.yaboya.basic.mapper;

import cn.yaboya.basic.query.BaseQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BaseMapper<T> {
    List<T> loadAll();

    T loadById(Long id);

    void add(T t);

    void update(T t);

    void remove(Long id);

    List<T> queryData(BaseQuery baseQuery);

    Integer queryCount(BaseQuery baseQuery);

    void batchRem(Long[] ids);

}
